package com.liuyonggang.generator.dao;

import java.util.List;
import com.liuyonggang.generator.model.DbInfo;
import com.liuyonggang.generator.util.PageInfo;

public interface DbInfoMapper {

	int countModel();

    int countByPage(PageInfo<DbInfo> pageInfo);

	List<DbInfo> findAll(DbInfo db);

    List<DbInfo> findAllByPage(PageInfo<DbInfo> pageInfo);

    DbInfo findById(int id);

    void addDbInfo(DbInfo db);

    void updateDbInfo(DbInfo db);

    void deleteDbInfo(DbInfo db);
}
